package com.mangatta.ec2.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.mangatta.ec2.service.Ec2DataPullerService;

public class WelcomeActivity extends Activity {
	private final static String TAG = WelcomeActivity.class.getSimpleName();

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.i(TAG, "onCreate");
		setContentView(R.layout.welcome);
		startService(new Intent(this, Ec2DataPullerService.class));
	}

	public void onAWSClick(View button) {
		startActivity(new Intent(WelcomeActivity.this, AuthPrefActivity.class));
	}

	public void onAppClick(View button) {
		startActivity(new Intent(WelcomeActivity.this,
				ApplicationPrefActivity.class));
	}

	public void onInstanceClick(View button) {
		startActivity(new Intent(WelcomeActivity.this,
				InstanceListActivity.class));
	}

}
